import request from '@/utils/request'
export function getGoods(data) {
    return request({
        url: 'goods',
        method: 'get',
        params: data
    })
}
export function deleteGoods(url) {
    return request({
        url: url,
        method: 'delete'
    })
}
export function getParams(url, data) {
    return request({
        url: url,
        method: 'get',
        params: data
    })
}
export function addGoods(data) {
    return request({
        url: 'goods',
        method: 'post',
        data: data
    })
}
export function getGoodsById(url) {
    return request({
        url: url,
        method: 'get'
    })
}
export function updateGoods(url, data) {
    return request({
        url: url,
        method: 'put',
        data: data
    })
}